import logging
import os
import sys

log_console = logging.StreamHandler(sys.stderr)
default_logger = logging.getLogger(__name__)
default_logger.setLevel(logging.DEBUG)

default_logger.addHandler(log_console)



default_logger.debug("this debug test")
default_logger.info("this info test")
default_logger.warning("this warning test")
default_logger.error("this error test")


def to_test(flag='to test'):
    default_logger.debug(f"this debug test - {flag}")
    default_logger.info(f"this info test - {flag}")
    default_logger.warning(f"this warning test - {flag}")
    default_logger.error(f"this error test - {flag}")


